// let baseUrl = 'http://dev.xiaocaicloud.com:8883/oa';
// let baseUrl = 'https://dev.xiaocaicloud.com:9443/oa';
let baseUrl = 'http://localhost:8085/oa';
// let baseUrl = 'http://192.168.0.100:8085/oa'
// let baseUrl = 'http://localhost:8085/oa';
// let baseUrl = 'http://demo.yimihome.com:8085/oa';
// let baseUrl = 'http://192.168.3.177:8085/oa'
// baseUrl = 'http://192.168.3.216:8085/oa';
// baseUrl = 'http://47.97.76.49:8100/oa3';
// baseUrl = 'http://47.115.34.111:8100/oa';

let appBaseUrl = uni.getStorageSync("appBaseUrl");
if (appBaseUrl) {
	baseUrl = appBaseUrl;
}

// #ifdef MP-WEIXIN
baseUrl = 'https://dev.xiaocaicloud.com:9443/oa';
// baseUrl = 'http://47.97.76.49:8000/oa4';
// #endif

export const Api = {
	baseUrl: baseUrl,
	// urlDownload: baseUrl + "/",
	// urlViewPDF: baseUrl + "/",
	// urlViewImg: baseUrl + "/",
	// urlViewVideo: baseUrl + "/",
}

export function setApiBaseUrl(url) {
	Api.baseUrl = url;
}
